import {Tools} from 'weaver-mobile';
import {getClientTypeInfo} from '../../util/CommonUtil';

export const resetParams = (params = {}) => {
	params['clientType'] = getClientTypeInfo();
	return params;
}
//获取列表数据
export const doDelete = (params = {}) => {
	return Tools.callApi({
		url: '/api/odoc/updateOperator/reducedSignature',
		method: 'POST',
		params: resetParams(params),
	});
}
export const loadDataUrl = '/api/odoc/updateOperator/loadData';

export const loadData = (params) => {
	return Tools.callApi({
		url: loadDataUrl,
		method: 'POST',
		params: resetParams(params),
	});
}

export const flowAddNext = (params) => {
	return Tools.callApi({
		url: '/api/odoc/updateOperator/plusSignature',
		method: 'POST',
		params: resetParams(params),
	})
};
